package services

import "law_case_api/dto"

type DataService struct {
}

// GetDashboardData 获取控制台的数据
func (data DataService) GetDashboardData() dto.DashboardData {
	outData := dto.DashboardData{}
	//待缴官费
	//待退费
	//补充证据
	//补充意见
	//待上诉
	_ = db.Table("wzj_db.wzj_case_info").Where("case_type = 20").Count(&outData.PendingAppeal)
	//待执行
	_ = db.Table("wzj_db.wzj_case_info").Where("case_type in(21,33,47)").Count(&outData.PendingExecute)
	//紧急案件
	//未到账垫付款
	return outData
}
